import api from "./api"
import axios from "../../../axios";


//查询余额
export const RemainQuery = (params) => {
    return axios({
        method: "get",
        url: api.payphone.remain,
        params,
        headers: {
            "Authorization": window.localStorage.getItem('token')
        }
    })
}

//话费充值
export const PhoneRecharge = (data) => {

       return axios({
        method:'post',
        url: api.payphone.phoneRecharge,
        data,
        headers: {
            "Authorization": window.localStorage.getItem('token')
        }
     })
}


//充值记录
export const CallrecordQuery=()=>{
   return axios({
    method:'get',
    url:api.payphone.Callrecord,
    headers: {
        "Authorization": window.localStorage.getItem('token')
     }
   })
}
